package com.bangda.crm.mapper;

import java.util.List;
import com.bangda.crm.domain.CrmStock;
import com.bangda.crm.domain.vo.ChartVo;

/**
 * 库存Mapper接口
 * 
 * @author fanboshi
 * @date 2023-10-24
 */
public interface CrmStockMapper 
{
    /**
     * 查询库存
     * 
     * @param stockId 库存主键
     * @return 库存
     */
    public CrmStock selectCrmStockByStockId(Long stockId);

    /**
     * 查询库存列表
     * 
     * @param crmStock 库存
     * @return 库存集合
     */
    public List<CrmStock> selectCrmStockList(CrmStock crmStock);

    /**
     * 新增库存
     * 
     * @param crmStock 库存
     * @return 结果
     */
    public int insertCrmStock(CrmStock crmStock);

    /**
     * 修改库存
     * 
     * @param crmStock 库存
     * @return 结果
     */
    public int updateCrmStock(CrmStock crmStock);

    /**
     * 删除库存
     * 
     * @param stockId 库存主键
     * @return 结果
     */
    public int deleteCrmStockByStockId(Long stockId);

    /**
     * 批量删除库存
     * 
     * @param stockIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmStockByStockIds(Long[] stockIds);

    public List<ChartVo> selectCrmStockListByChart();
}
